package mmi.gui;

/**
 * The main application.
 * 
 * @author louis
 *
 */
public class Application implements Runnable
{
	private static final long serialVersionUID = 1464011331846982267L;

	/**
	 * @return the outputDebug
	 */
	public static boolean isOutputDebug() {
		return outputDebug;
	}

	/**
	 * @return the outputTrace
	 */
	public static boolean isOutputTrace() {
		return outputTrace;
	}

	/**
	 * @param outputDebug the outputDebug to set
	 */
	public static void setOutputDebug(boolean outputDebug) {
		Application.outputDebug = outputDebug;
	}

	/**
	 * @param outputTrace the outputTrace to set
	 */
	public static void setOutputTrace(boolean outputTrace) {
		Application.outputTrace = outputTrace;
	}

	MainFrame mainApplication;

	private static boolean outputDebug = false;

	private static boolean outputTrace = true;
	public static void Trace(String s)
	{
		if(outputTrace) {
			System.out.println(s);
		}
	}

	public static void TraceDebug(String s)
	{
		if(outputDebug) {
			System.err.println(s);
		}
	}

	@Override
	public void run() {
		mainApplication = new MainFrame();

		mainApplication.setVisible(true);
	}
}
